package com.rongmei.jdsync.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.rongmei.jdsync.entity.Goods;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * 商品数据传输对象
 *
 * @author dongjun
 */
@Data
@Schema(description = "商品数据传输对象", title = "商品数据DTO")
public class GoodsDataDto {

    @Schema(description = "总页数", example = "10")
    @JsonProperty("page_count")
    private Integer pageCount;

    @Schema(description = "商品总数", example = "100")
    private Integer count;

    @Schema(description = "商品列表")
    private List<Goods> list;
}